<table class="table table-bordered">
    <thead>
        <tr>
            <td width="10%">奖券号</td>
            <td width="10%">类型</td>
            <td width="10%">个人ID</td>
            <td width="20%">帐号</td>
            <td width="10%">邀请人ID</td>
            <td width="10%">开奖情况</td>
            <td width="10%">状态</td>
            <td width="20%">创建时间</td>
        </tr>
    </thead>
    <tbody>
    <php>
        $lottory_ticket_comefrom = array('1'=>'自主注册','2'=>'邀请注册','3'=>'受邀注册');
        $lottory_status = array('1'=>'已中奖','2'=>'未中奖');
    </php>
    <empty name="list">
        <tr class="listBg"><td colspan="8">抱歉，该条件下没有数据</td></tr>
        <else />
        <volist name="list" id="list" key="k">
            <tr class="listBg">
                <td>{:lottory_ticket_format($list['lottory_ticket_num'])}</td>
                <td>{$lottory_ticket_comefrom[$list[lottory_ticket_comefrom]]}</td>
                <td>{$list.uid}</td>
                <td>{$list.user}</td>
                <td>
                    <if condition="($list.invite_uid neq 0) AND ($list.lottory_ticket_comefrom eq 3)">
                    {$list.invite_uid}
                    </if>
                </td>
                <td>
                    <if condition="$list.lottory_win_num gt 0">
                        {$lottory_status[$list[lottory_ticket_status]]}
                    </if>
                </td>
                 <td>
                    <if condition="$list.lottory_win_num gt 0">
                        已开奖
                    <else />
                        待开奖
                    </if>
                </td>
                <td>{$list.create_time|date="Y-m-d H:i:s", ###}</td>
            </tr>
        </volist>
    </empty>
</tbody>
</table>
<div class="pageFaye"><div class="pager">{$page}</div><div class="clear"></div></div>
